class CreateBars < ActiveRecord::Migration
  def self.up
    create_table :bars do |t|
      t.column :name, :string
      t.column :user_id, :integer
      t.column :street, :string
      t.column :city, :string
      t.column :zipcode, :integer
      t.column :bar_guests_count, :integer
      t.column :bar_coworkers_count, :integer
      t.column :bar_owners_count, :integer
      
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end
  end

  def self.down
    drop_table :bars
  end
end
